import Vue from 'vue'
import Vuex from 'vuex'
import getters from './getters'
import state from './state'
import actions from './actions'
import mutations from './mutations'
import createPersistedState  from 'vuex-persistedstate'
import Cookies from 'js-cookie'
Vue.use(Vuex)
const store = new Vuex.Store({
  // modules,
  getters,
  state,
  actions,
  mutations,
  plugins: [createPersistedState({
    storage: localStorage

  })]
//localStorage
})

export default store
